FicooCore\Provider\ApiService D

Total Complexity 246
Dependencies 7
Dependents 5
Total lines 2,633
Lines of code 1,603
Logical lines of code 687
Comment lines 525
Methods 50
Properties 4

Methods 50

Method Rating Maintainability Complexity Lines of code
initial_sync()
C
30 25 133
create_clients_table_and_populate()
C
30 25 124
process_clients_and_remove_duplicates()
B
39 23 61
handle_create_document_request()
A
41 11 66
match_and_assign_wp_users()
A
41 11 65
list_clients_on_fic()
A
38 8 77
get_products_by_category()
A
42 8 60
schedule_email_request()
A
39 7 68
build_csv()
A
43 8 46
update_email_monitor()
A
41 6 62
add_client_to_database()
A
41 5 62
check_connection_status()
A
50 7 31
connect_to_fic()
S
43 5 55
get_last_month_e_invoices()
S
48 5 36
create_document()
S
45 4 45
download_csv_by_product_by_sku()
S
53 5 25
retry_update_access_token()
S
55 5 20
wrapper_ajax_retry_update_access_token()
S
56 5 18
get_fic_balance_accounts()
S
51 4 27
display_connected_status()
S
50 4 26
get_fic_payment_methods()
S
52 4 25
handle_missing_customer()
S
55 4 23
handle_duplicate_during_update()
S
49 3 35
post_woo_payment_methods()
S
49 3 35
get_product_by_sku()
S
49 3 34
check_customer_on_fic()
S
59 4 14
handle_new_customer_creation()
S
53 3 28
get_fic_tax_rates()
S
53 3 24
mport_user_companies()
S
54 3 21
update_existing_client()
S
50 2 31
is_duplicate_customer_error()
S
64 4 8
process_update_response()
S
52 2 27
import_product_categories_from_fic()
S
54 2 22
update_customer_on_fic()
S
56 2 20
get_company_info()
S
57 2 19
handle_existing_customer_update()
S
58 2 19
download_csv_by_product_category()
S
58 2 16
maybe_send_document()
S
65 2 11
create_customer_on_fic()
S
60 1 15
is_resource_not_found_error()
S
74 2 4
find_existing_client()
S
65 2 9
handle_duplicate_customer()
S
67 2 7
process_successful_creation()
S
60 1 13
__construct()
S
70 1 6
handle_creation_error()
S
67 1 9
display_disconnected_status()
S
65 1 8
register_hooks()
S
74 1 4
get_utils()
S
82 1 3
get_provider()
S
82 1 3
wrapper_get_device_code()
S
81 1 3